Xbasic

StringDictionary.CLEAR Function

Syntax

Clear as v()

Arguments

Data_Value

Character data to be saved in the dictionary.

Key_Value

A unique character value.

Description

Remove all keys from the string dictionary.

Discussion

The .CLEAR() method Removes all keys from a StringDictionary list.

Example

dim sd as StringDictionary
sd.set("abc", "3")
? sd.get("abc")
= "3"
sd.clear()
? sd.get("abc")
= ""

See Also